<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/10/23
 * Time: 15:59
 */

namespace app\lib\exception;


use think\Exception;

class BaseException extends Exception
{

    public $code = 400;
    public $msg = '';
    public $errorCode = 999;

    public function __construct($param=null)
    {
        if(!$param){
            return;
        }

        if(array_key_exists('msg',$param)){
            $this->msg = $param['msg'];
        }

        /*if(array_key_exists('code',$param)){
            $this->code = $param['code'];
        }

        if(array_key_exists('errorCode',$param)){
            $this->errorCode = $param['errorCode'];
        }

        */

    }


}